DigiHaler inhalers have built in sensors that records inhaler delivery and syncs it to phone apps.
Diginhaler is an example of dry powder inhaler. The instructions are available at manufacture website.